Features:


      1. Recursive directory scan.
      2. PCRE-driven (Perl-Compatible Regular Expressions).
      3. Find, Find-and-Replace behavior.
      4. Verbose reports.



Limitations:


      1. Use carefully!
      2. No multiline expressions (for performance reason).
      3. No plain text patching ("find this code, replace with that code"; TODO).



Installation:


      1. Unpack 'patcher' into your 'plugins' folder.
      2. Go to admin?m=plug and install the plugin.
      3. Now you can access the tool at admin?m=tools&p=patcher.



Changelog:

      0.1.2:
      + Microsoft Windows support (still there are access problems).
      + An option to choose which files you want to patch and which you don't.
      0.1.1: a small fix in "back" links.



Download: Patcher v0.1.2

Description:
This tool will help you to change some text in your Seditio source tree by invoking a Perl-compatible regular expression. Use it carefully and do not run any untrusted expressions because it may cause damage to your Seditio installation.

At the first step it will scan the source tree for the search expression and give you the list of files that are about to be patched and whether they are ready for patching or not. Please make sure you have made all the requested files writable before proceeding to the next step.

At the second step it will apply the patch and modify the source files. No rollback available, so you should better backup before entering this step.

If you are new to PCRE, please read Pattern Syntax, Pattern Modifiers and preg_replace.

Known issues:


      1. Some search patterns result into a blank page.
      2. Some Windows/IIS/Plesk servers don't patch, because of file permissions although the script says "OK".



Comments:
What is the "Patcher" tool? It is some kind of "find-and-replace in files" directly in your admin panel. I know, it's a little bit hardcore, being designed for experienced admins, but it really helps to track and modify the core + plugins. If you're still puzzled what this tool can be used for, soon I'm releasing an advanced URL rewrite extension, which requires massive source patching.

Feel free to report any bugs and request any features.